package util;

/**
 * Created by IntelliJ IDEA.
 * User: vladimir
 * Date: 21.01.12
 * Time: 14:10
 * To change this template use File | Settings | File Templates.
 */
public class Temp {
    public static void main(String[] args) {
//        int x = Integer.valueOf(args[0]);
//        int e = Integer.valueOf(args[1]);
        int x = 5;
        int e = 10000;
        validateArgs(x, e);
        double summ = 0;
        for (int n = 1; n < e; n++) {
            summ += 1 / ((2  * n - 1) * Math.pow(x, 2 * n - 1));
        }
        System.out.println(summ);
    }

    private static void validateArgs(int x, int e) {
        System.out.println("validated");
    }

}
